package cn.gov.msa.service;

import java.util.List;

import org.springframework.stereotype.Service;

import cn.gov.msa.model.Rule;
import cn.gov.msa.model.RuleTime;

@Service
public interface RuleService {
	
	public List<Rule> selectData(int pageNum, int pageSize,Rule rule);
	
	public int insertRule(Rule rule);
	
	public int deleteRule(String ruleId);
	
	public int updateRule(Rule rule,List<RuleTime> ruleTimeList);
	
	public boolean saveData(Rule rule, List<RuleTime> ruleTimeList) throws Exception;
	
	public List<RuleTime> getRuleTime(String rules);
	
	public int selectDistinct(String orgcode,String itemid,String ruleid);
	
	public List<RuleTime> getMaxNum(String ruleid,String reservetime);//获取最大人数

	public List<Rule> selectDict(String orgcode);

}
